package com.itheima.dateDemo;

import java.util.Date;

public class DateDemo02 {
    public static void main(String[] args) {
        Date date = new Date();//当前时间
        long time = date.getTime();
        System.out.println(time);//1616810415659

        date.setTime(0L);
        System.out.println(date);//Thu Jan 01 08:00:00 CST 1970
    }
}
